package com.healMyself.service.impl;

import com.healMyself.dao.UserDao;
import com.healMyself.dao.impl.UserDaoImpl;
import com.healMyself.pojo.User;
import com.healMyself.service.UserService;

public class UserServiceImpl implements UserService {

    UserDao userDao = new UserDaoImpl();

    /**
     * 用户注册
     * @param user
     * @return
     */
    @Override
    public int registerUser(User user) {
        return userDao.registerUser(user);
    }

    /**
     * 用户登录
     * @param wroteAccount
     * @param wrotePassword
     * @return
     */
    @Override
    public User loginUser(String wroteAccount, String wrotePassword) {
        return userDao.loginUser(wroteAccount, wrotePassword);
    }
}
